home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Visual Basic Source Code
/
Visual Basic Source Code.iso
/
vbsource
/
orbit
/
gridset.frm
< prev
next >
Wrap
Text File
|
1995-12-05
|
5KB
|
184 lines
VERSION 2.00
Begin Form gridset
BackColor = &H00C0C0C0&
BorderStyle = 3 'Fixed Double
Caption = "Grid Settings"
ClientHeight = 3195
ClientLeft = 3660
ClientTop = 2025
ClientWidth = 3000
Height = 3600
Left = 3600
LinkMode = 1 'Source
LinkTopic = "Form2"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 3195
ScaleWidth = 3000
Top = 1680
Width = 3120
Begin SSPanel SSPanel2
AutoSize = 3 'AutoSize Child To Panel
BevelInner = 1 'Inset
BevelWidth = 2
ForeColor = &H00000000&
Height = 615
Left = 120
TabIndex = 9
Top = 2520
Width = 2775
Begin CommandButton Command1
Cancel = -1 'True
Caption = "O.K."
Height = 405
Left = 105
TabIndex = 10
Top = 105
Width = 2565
End
End
Begin TextBox stepy
Height = 375
Left = 1080
TabIndex = 6
Top = 2040
Width = 1695
End
Begin TextBox stepx
Height = 375
Left = 1080
TabIndex = 5
Top = 1560
Width = 1695
End
Begin CheckBox yaxis
BackColor = &H00C0C0C0&
Caption = "Y Axis"
Height = 255
Left = 120
TabIndex = 8
Top = 1200
Width = 855
End
Begin CheckBox xaxis
BackColor = &H00C0C0C0&
Caption = "X Axis"
Height = 255
Left = 120
TabIndex = 7
Top = 960
Width = 855
End
Begin PictureBox graph
AutoRedraw = -1 'True
Height = 1335
Left = 1200
ScaleHeight = 1305
ScaleWidth = 1545
TabIndex = 2
Top = 120
Width = 1575
End
Begin SSPanel SSPanel1
AutoSize = 3 'AutoSize Child To Panel
BevelInner = 1 'Inset
BevelWidth = 2
ForeColor = &H00000000&
Height = 735
Left = 120
TabIndex = 0
Top = 120
Width = 735
Begin PictureBox Picture2
Height = 525
Left = 105
Picture = GRIDSET.FRX:0000
ScaleHeight = 495
ScaleWidth = 495
TabIndex = 1
Top = 105
Width = 525
End
End
Begin Label Label2
AutoSize = -1 'True
BackColor = &H00C0C0C0&
Caption = "Step in Y:"
Height = 195
Left = 120
TabIndex = 4
Top = 2040
Width = 855
End
Begin Label Label1
AutoSize = -1 'True
BackColor = &H00C0C0C0&
Caption = "Step in X:"
Height = 195
Left = 120
TabIndex = 3
Top = 1560
Width = 855
End
End
Sub Command1_Click ()
gridset.Hide
Unload gridset
End Sub
Sub Form_Load ()
graph.scalewidth = planet.graph.scalewidth
graph.scaleheight = planet.graph.scaleheight
stepx.text = Str$(gridx)
stepy.text = Str$(gridy)
End Sub
Sub stepx_Change ()
gridx = Val(stepx.text)
If xaxis.value = 1 And stepx.text <> "" Then griddraw "x", gridx, 0
End Sub
Sub stepy_Change ()
gridy = Val(stepy.text)
End Sub
Sub xaxis_Click ()
If stepx.text = "" Then
Beep
MsgBox "Please enter a Step.", 48, "orbital"
Exit Sub
End If
If xaxis.value = 1 Then
gridison = 1
griddraw "x", gridx, 0
Exit Sub
Else
gridison = 0
graph.Cls
End If
End Sub
Sub yaxis_Click ()
If stepy.text = "" Then
Beep
MsgBox "Please enter a Step.", 48, "orbital"
Exit Sub
End If
If yaxis.value = 1 Then
griddraw "y", gridy, 0
Exit Sub
Exit Sub
Else
gridison = 0
graph.Cls
End If
End Sub